<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="avicit.platform6.core.locale.PlatformLocalesJSTL"%>
<%@page import="java.util.Locale"%>
<%@page import="avicit.platform6.api.session.SessionHelper"%>
<%@ page import="avicit.platform6.commons.utils.ViewUtil"%>
<%@ page import="avicit.platform6.commons.utils.ComUtil"%>
<%@ taglib prefix="sec" uri="/WEB-INF/tags/shiro.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<base href="<%=ViewUtil.getRequestPath(request)%>">
<%@page import="avicit.platform6.api.sysshirolog.impl.AfterLoginSessionProcess"%>
<% 
Object lang=session.getAttribute(AfterLoginSessionProcess.SESSION_CURRENT_LANGUAGE_CODE);
String languageCode="zh_CN";
if(lang!=null){
	languageCode=lang.toString();
}
	Locale locale =SessionHelper.getLocaleByUser(request);
%>
<jsp:include page="/avicit/platform6/component/common/EasyUIJsInclude.jsp"></jsp:include>
<jsp:include page="/avicit/im/common/ImUIJSCSSInclude.jsp"></jsp:include>
<jsp:include page="/avicit/platform6/modules/system/commonpopup/commonSelectionHead.jsp"></jsp:include>
<script type="text/javascript" src="avicit/im/lantop/basic/archiveclassmanager/ArchiveclassmanagerOrder.js"></script>
<script type="text/javascript" src="avicit/im/lantop/basic/archiveclassmanager/locale/language_<%=languageCode%>.js"></script>
<link href="static/css/custom/lantop/css/custom.css" type="text/css"  rel="stylesheet">
<title>档案分类树排序</title>
<script type="text/javascript">
sysId = "${sysId}";
parentId = "${parentId}";
dialogId = "${dialogId}";
</script>
</head>
<body class="easyui-layout">
	<div id="order" region="center" border="false">
		<table id="orderDatagird" class="easyui-datagrid" 
			data-options="
			rownumbers: true,
			animate: false,
			collapsible: false,
			fitColumns: true,
			autoRowHeight: false,
			singleSelect: true,
			pagination: true,
			pageSize: 50, 
			pageList: [50,100,150], 
	   		striped: true,
			fit: true,
			onClickCell: onClickCell,
			url: 'platform/archiveclassmanagerController/getTreeDataByParentId?parentId=${parentId}',
			toolbar: '#datagridToolbar',
			method: 'post'
		">
			<thead>
				<tr>
					<sec:accesscontrollist  hasPermission="3" domainObject ="mydocmanagerManager_fileDatagrid_id">
						<th data-options="field:'ID', halign:'center',checkbox:true"
							title="主键ID" width="20">主键ID</th>
					</sec:accesscontrollist>
					<sec:accesscontrollist  hasPermission="3" domainObject ="mydocmanagerManager_fileDatagrid_allFile">
						<%-- 节点名称 --%>
						<th data-options="field:'archiveClassNodeName', halign:'center', align:'center', sortable:false,editor:{type:'text'}"
							width="80" title="节点名称"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.archiveClassTreeManager.sort.nodeName","i18n.lantop",locale)%></th>
					</sec:accesscontrollist>
					<sec:accesscontrollist  hasPermission="3" domainObject ="mydocmanagerManager_fileDatagrid_nodeSortNumber">
						<%-- 节点顺序 --%>
						<th data-options="field:'nodeSortNumber', halign:'center', align:'center', sortable:false,editor:{type:'numberbox', options:{required:true, validType: 'integer', min: 0, max: 999999999999999}}"
							width="80" title="节点顺序"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.archiveClassTreeManager.sort.nodeOrder","i18n.lantop",locale)%></th>
					</sec:accesscontrollist>
				</tr>
			</thead>
		</table>
		<div id="datagridToolbar" class="datagrid-toolbar" style="padding:10px 5px">
			<sec:accesscontrollist  hasPermission="3" domainObject ="mydocmanagerManager_fileDatagrid_id">
				<%-- 保存 --%>
				<a class="easyui-linkbutton selbtnc" iconCls="icon-im-save" id="saveButton" onclick="saveData();" href="javascript:void(0);"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.archiveClassTreeManager.sort.save","i18n.lantop",locale)%></a>
			</sec:accesscontrollist>
			<sec:accesscontrollist hasPermission="3" domainObject="mydocmanagerManager_fileDatagrid_goBack">
				<%-- 返回 --%>
				<a id="goBack" class="easyui-linkbutton selbtnc" data-options="iconCls:'icon-im-back'" onclick="closeForm();" href="javascript:void(0);"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.archiveClassTreeManager.sort.return","i18n.lantop",locale)%></a>
			</sec:accesscontrollist>
		</div>
	</div>
</body>
</html>